package jschool.ui.servidor.ventanas;

import javax.swing.JFrame;

import jschool.ui.servidor.paneles.PanelLogin;

public class VentanaLogin extends JFrame {

	private static VentanaLogin instancia;
	private static final long serialVersionUID = 1L;
	private PanelLogin panelLogin;
	
	
	private VentanaLogin() {
		
		setUndecorated( true );
		setVisible( true );
		
		panelLogin = new PanelLogin();
		
		add( panelLogin );
		pack();
		
		setLocationRelativeTo( null );
		
	}
	
	
	public static VentanaLogin getInstancia() {
		
		if( instancia == null ) {
			instancia = new VentanaLogin();
		}
		
		return instancia;
	}
	
	
	public PanelLogin getPanelLogin() {
		return panelLogin;
	}
	
	public static void main( String [] arg ) {
		getInstancia();
	}
}
